#include <exti_blestate.h>
#include "debug.h"
#include "bleuart.h"
#include "gpioledinit.h"
#include "ledconfig.h"
#include "exti_blestate.h"

int main(void)
{
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
    Delay_Init();
    USART_Printf_Init(115200);
    printf("SystemClk:%d\r\n", SystemCoreClock);

    GPIO_LedInit();
    BleStateEventInterruptInit();
    Uart_BleInit();

    while(1)
    {
        BleReceiverData();
        BleReceiverDataParse();
    }
}
